FolderItem.CopyFileTo Method

If Destination is a folder, then the FolderItem is copied into Destination. If Destination is a file and the file already exists, the copy is aborted.

Syntax

FolderItem.CopyFileTo Destination

Parameters

Destination

FolderItem

Notes

You need to delete the existing file first. If there is an error, the LastErrorCode property contains an error code.